def copy_picture():
	try:
		with open('ginkgo.jpeg', 'rb') as fs1:
			data = fs1.read()
			print(type(data))
		with open('ginkgo2.jpeg', 'wb') as fs2:
			fs2.write(data)
	except FileNotFoundError as e:
		print('指定文件无法打开')
	except IOError as e:
		print('读写文件出错')
	print('copy 图片完成')

if __name__ == '__main__':
	copy_picture()



